package com.hckjsec.law.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hckjsec.common.annotation.Excel;
import com.hckjsec.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 公共法律服务政务咨询对象 web_law_consultation
 * 
 * @author cyt
 * @date 2021-11-26
 */
public class WebLawConsultation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 配置id */
    @Excel(name = "配置id")
    private Long configId;

    /** openid */
    @Excel(name = "openid")
    private String openid;

    /** 姓名 */
    @Excel(name = "姓名")
    private String type;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date applyTime;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 回复人 */
    @Excel(name = "回复人")
    private Long answer;

    /** 回复人姓名 */
    @Excel(name = "回复人姓名")
    private String answerName;

    /** 回复时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date answerTime;

    /** 回复内容 */
    @Excel(name = "回复内容")
    private String answerContent;

    //appid
    private String  appid;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setConfigId(Long configId)
    {
        this.configId = configId;
    }

    public Long getConfigId()
    {
        return configId;
    }
    public void setOpenid(String openid)
    {
        this.openid = openid;
    }

    public String getOpenid()
    {
        return openid;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setApplyTime(Date applyTime)
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime()
    {
        return applyTime;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setAnswer(Long answer)
    {
        this.answer = answer;
    }

    public Long getAnswer()
    {
        return answer;
    }
    public void setAnswerName(String answerName)
    {
        this.answerName = answerName;
    }

    public String getAnswerName()
    {
        return answerName;
    }
    public void setAnswerTime(Date answerTime)
    {
        this.answerTime = answerTime;
    }

    public Date getAnswerTime()
    {
        return answerTime;
    }
    public void setAnswerContent(String answerContent)
    {
        this.answerContent = answerContent;
    }

    public String getAnswerContent()
    {
        return answerContent;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("configId", getConfigId())
                .append("openid", getOpenid())
                .append("type", getType())
                .append("applyTime", getApplyTime())
                .append("name", getName())
                .append("phone", getPhone())
                .append("content", getContent())
                .append("state", getState())
                .append("answer", getAnswer())
                .append("answerName", getAnswerName())
                .append("answerTime", getAnswerTime())
                .append("answerContent", getAnswerContent())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
